app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
APP'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> APP'2(low, n)
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(if_low, app'2(app'2(le, m), n))
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(app'2(filter2, app'2(f, x)), f), x)
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(minus, x)
APP'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> APP'2(app'2(low, n), x)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(app'2(high, n), x)
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(quicksort, app'2(app'2(low, n), x))
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(high, n)
APP'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> APP'2(minus, x)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(app'2(low, n), x)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x)))
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(minus, x), y)
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(if_high, app'2(app'2(le, m), n))
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(app'2(if_high, app'2(app'2(le, m), n)), n)
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y))
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(app'2(if_low, app'2(app'2(le, m), n)), n)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(filter2, app'2(f, x)), f)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(app, app'2(quicksort, app'2(app'2(low, n), x)))
APP'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> APP'2(app'2(high, n), x)
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(filter, f)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(low, n)
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(filter2, app'2(f, x))
APP'2(app'2(app, app'2(app'2(add, n), x)), y) -> APP'2(app'2(add, n), app'2(app'2(app, x), y))
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(add, app'2(f, x))
APP'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(minus, x), y)
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(map, f), xs)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(quicksort, app'2(app'2(high, n), x))
APP'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> APP'2(filter, f)
APP'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> APP'2(app'2(add, m), app'2(app'2(low, n), x))
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(quot, app'2(app'2(minus, x), y))
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(f, x)
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(app'2(le, m), n)
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(add, x)
APP'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> APP'2(app'2(add, m), app'2(app'2(high, n), x))
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(le, m)
APP'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> APP'2(high, n)
APP'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> APP'2(app'2(low, n), x)
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(app'2(filter, f), xs)
APP'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> APP'2(low, n)
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
APP'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> APP'2(high, n)
APP'2(app'2(app, app'2(app'2(add, n), x)), y) -> APP'2(app'2(app, x), y)
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(le, m)
APP'2(app'2(app, app'2(app'2(add, n), x)), y) -> APP'2(app, x)
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(app'2(add, x), app'2(app'2(filter, f), xs))
APP'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> APP'2(app'2(high, n), x)
APP'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> APP'2(app'2(filter, f), xs)
APP'2(app'2(le, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(le, x), y)
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(f, x)
APP'2(app'2(le, app'2(s, x)), app'2(s, y)) -> APP'2(le, x)
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(app'2(le, m), n)
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
APP'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> APP'2(low, n)
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(if_low, app'2(app'2(le, m), n))
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(app'2(filter2, app'2(f, x)), f), x)
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(minus, x)
APP'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> APP'2(app'2(low, n), x)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(app'2(high, n), x)
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(quicksort, app'2(app'2(low, n), x))
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(high, n)
APP'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> APP'2(minus, x)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(app'2(low, n), x)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x)))
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(minus, x), y)
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(if_high, app'2(app'2(le, m), n))
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(app'2(if_high, app'2(app'2(le, m), n)), n)
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y))
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(app'2(if_low, app'2(app'2(le, m), n)), n)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(filter2, app'2(f, x)), f)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(app, app'2(quicksort, app'2(app'2(low, n), x)))
APP'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> APP'2(app'2(high, n), x)
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(filter, f)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(low, n)
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(filter2, app'2(f, x))
APP'2(app'2(app, app'2(app'2(add, n), x)), y) -> APP'2(app'2(add, n), app'2(app'2(app, x), y))
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(add, app'2(f, x))
APP'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(minus, x), y)
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(map, f), xs)
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(quicksort, app'2(app'2(high, n), x))
APP'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> APP'2(filter, f)
APP'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> APP'2(app'2(add, m), app'2(app'2(low, n), x))
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(quot, app'2(app'2(minus, x), y))
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(f, x)
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(app'2(le, m), n)
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(add, x)
APP'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> APP'2(app'2(add, m), app'2(app'2(high, n), x))
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(le, m)
APP'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> APP'2(high, n)
APP'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> APP'2(app'2(low, n), x)
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(app'2(filter, f), xs)
APP'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> APP'2(low, n)
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
APP'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> APP'2(high, n)
APP'2(app'2(app, app'2(app'2(add, n), x)), y) -> APP'2(app'2(app, x), y)
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(le, m)
APP'2(app'2(app, app'2(app'2(add, n), x)), y) -> APP'2(app, x)
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(app'2(add, x), app'2(app'2(filter, f), xs))
APP'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> APP'2(app'2(high, n), x)
APP'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> APP'2(app'2(filter, f), xs)
APP'2(app'2(le, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(le, x), y)
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(f, x)
APP'2(app'2(le, app'2(s, x)), app'2(s, y)) -> APP'2(le, x)
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(app'2(le, m), n)
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
APP'2(app'2(app, app'2(app'2(add, n), x)), y) -> APP'2(app'2(app, x), y)
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP'2(app'2(app, app'2(app'2(add, n), x)), y) -> APP'2(app'2(app, x), y)
POL(APP'2(x1, x2)) = x1
POL(add) = 0
POL(app) = 0
POL(app'2(x1, x2)) = 1 + x2
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
APP'2(app'2(le, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(le, x), y)
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP'2(app'2(le, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(le, x), y)
POL(APP'2(x1, x2)) = x1
POL(app'2(x1, x2)) = 1 + x1 + x2
POL(le) = 0
POL(s) = 1
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
APP'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> APP'2(app'2(high, n), x)
APP'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> APP'2(app'2(high, n), x)
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> APP'2(app'2(high, n), x)
APP'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> APP'2(app'2(high, n), x)
Used ordering: Polynomial interpretation [21]:
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
POL(0) = 1
POL(APP'2(x1, x2)) = x1 + x2
POL(add) = 0
POL(app'2(x1, x2)) = 1 + x2
POL(false) = 0
POL(high) = 0
POL(if_high) = 0
POL(le) = 0
POL(s) = 0
POL(true) = 0
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
APP'2(app'2(high, n), app'2(app'2(add, m), x)) -> APP'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
APP'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> APP'2(app'2(low, n), x)
APP'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> APP'2(app'2(low, n), x)
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> APP'2(app'2(low, n), x)
APP'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> APP'2(app'2(low, n), x)
Used ordering: Polynomial interpretation [21]:
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
POL(0) = 0
POL(APP'2(x1, x2)) = x1 + x2
POL(add) = 0
POL(app'2(x1, x2)) = 1 + x2
POL(false) = 0
POL(if_low) = 0
POL(le) = 0
POL(low) = 1
POL(s) = 0
POL(true) = 0
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
APP'2(app'2(low, n), app'2(app'2(add, m), x)) -> APP'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(quicksort, app'2(app'2(high, n), x))
APP'2(quicksort, app'2(app'2(add, n), x)) -> APP'2(quicksort, app'2(app'2(low, n), x))
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
APP'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(minus, x), y)
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(minus, x), y)
POL(APP'2(x1, x2)) = x1
POL(app'2(x1, x2)) = 1 + x1 + x2
POL(minus) = 0
POL(s) = 1
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
APP'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> APP'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y))
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(map, f), xs)
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(app'2(filter, f), xs)
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(f, x)
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(f, x)
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
APP'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> APP'2(app'2(filter, f), xs)
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(map, f), xs)
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(f, x)
APP'2(app'2(map, f), app'2(app'2(add, x), xs)) -> APP'2(f, x)
APP'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> APP'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
Used ordering: Polynomial interpretation [21]:
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(app'2(filter, f), xs)
APP'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> APP'2(app'2(filter, f), xs)
POL(0) = 0
POL(APP'2(x1, x2)) = x2
POL(add) = 0
POL(app) = 0
POL(app'2(x1, x2)) = 1 + x1 + x2
POL(false) = 0
POL(filter) = 0
POL(filter2) = 0
POL(high) = 0
POL(if_high) = 0
POL(if_low) = 0
POL(le) = 0
POL(low) = 0
POL(map) = 0
POL(minus) = 0
POL(nil) = 0
POL(quicksort) = 0
POL(quot) = 0
POL(s) = 0
POL(true) = 0
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
APP'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> APP'2(app'2(filter, f), xs)
APP'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> APP'2(app'2(filter, f), xs)
app'2(app'2(minus, x), 0) -> x
app'2(app'2(minus, app'2(s, x)), app'2(s, y)) -> app'2(app'2(minus, x), y)
app'2(app'2(quot, 0), app'2(s, y)) -> 0
app'2(app'2(quot, app'2(s, x)), app'2(s, y)) -> app'2(s, app'2(app'2(quot, app'2(app'2(minus, x), y)), app'2(s, y)))
app'2(app'2(le, 0), y) -> true
app'2(app'2(le, app'2(s, x)), 0) -> false
app'2(app'2(le, app'2(s, x)), app'2(s, y)) -> app'2(app'2(le, x), y)
app'2(app'2(app, nil), y) -> y
app'2(app'2(app, app'2(app'2(add, n), x)), y) -> app'2(app'2(add, n), app'2(app'2(app, x), y))
app'2(app'2(low, n), nil) -> nil
app'2(app'2(low, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_low, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_low, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(low, n), x))
app'2(app'2(app'2(if_low, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(low, n), x)
app'2(app'2(high, n), nil) -> nil
app'2(app'2(high, n), app'2(app'2(add, m), x)) -> app'2(app'2(app'2(if_high, app'2(app'2(le, m), n)), n), app'2(app'2(add, m), x))
app'2(app'2(app'2(if_high, true), n), app'2(app'2(add, m), x)) -> app'2(app'2(high, n), x)
app'2(app'2(app'2(if_high, false), n), app'2(app'2(add, m), x)) -> app'2(app'2(add, m), app'2(app'2(high, n), x))
app'2(quicksort, nil) -> nil
app'2(quicksort, app'2(app'2(add, n), x)) -> app'2(app'2(app, app'2(quicksort, app'2(app'2(low, n), x))), app'2(app'2(add, n), app'2(quicksort, app'2(app'2(high, n), x))))
app'2(app'2(map, f), nil) -> nil
app'2(app'2(map, f), app'2(app'2(add, x), xs)) -> app'2(app'2(add, app'2(f, x)), app'2(app'2(map, f), xs))
app'2(app'2(filter, f), nil) -> nil
app'2(app'2(filter, f), app'2(app'2(add, x), xs)) -> app'2(app'2(app'2(app'2(filter2, app'2(f, x)), f), x), xs)
app'2(app'2(app'2(app'2(filter2, true), f), x), xs) -> app'2(app'2(add, x), app'2(app'2(filter, f), xs))
app'2(app'2(app'2(app'2(filter2, false), f), x), xs) -> app'2(app'2(filter, f), xs)